package james.edu.gui;
import javax.swing.ImageIcon;
import javax.swing.JFrame;

public class FlashCardApp  {
	
	public static void main(String args []) {
		if(args.length == 1) {
			JFrame Frame = new FlashCardFrame(args[0]);		
		}
		else {
			JFrame Frame = new FlashCardFrame();
		}
	}
	
	protected ImageIcon createImageIcon(String path,
			String description) {
		java.net.URL imgURL = getClass().getResource(path);
		if (imgURL != null) {
			return new ImageIcon(imgURL, description);
		} else {
			System.err.println("Couldn't find file: " + path);
			return null;
		}
	}


}
